package models

// AlarmNotifyUser 告警联系人信息
type AlarmNotifyUser struct {
	ID           string `json:"id" gorm:"column:id;primaryKey;type:int;size:64;comment:主键id"`
	ObjName      string `json:"obj_name" gorm:"column:obj_name;type:string;size:40;comment:联系人"`
	PhoneNumber  string `json:"phone_number" gorm:"column:phone_number;type:string;size:40;comment:电话"`
	EmailAddress string `json:"email_address" gorm:"column:email_address;type:string;size:40;comment:邮箱"`
	BelongUser   string `json:"belong_user" gorm:"column:belong_user;type:string;size:40;comment:上级用户"`
}

// TableName 指定表名
func (AlarmNotifyUser) TableName() string {
	return "alarm_notify_user"
}

// 模式自动注册
func init() {
	Models = append(Models, &AlarmNotifyUser{})
}
